package com.example.xiaozu.model;

import java.io.Serializable;
import java.util.Date;

public class Article implements Serializable {
    private String id;
    private String title;
    private String content;
    private String author;
    private Date publishTime;

    // 构造方法
    public Article(String id, String title, String content, String author, Date publishTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.author = author;
        this.publishTime = publishTime;
    }

    // Getter方法
    public String getId() { return id; }
    public String getTitle() { return title; }
    public String getContent() { return content; }
    public String getAuthor() { return author; }
    public Date getPublishTime() { return publishTime; }
}
